package com.opensource.lzx.annotation;

import com.opensource.lzx.enums.ValidType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: 739891618@qq.com
 * @Date: 2022-11-15 23:02:29
 * @ClassName: GeneralValid
 * @Describe: this is a ...
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface GeneralValid {
    /**
     *  校验类型
     *
     * @return
     */
    ValidType[] valid() default {ValidType.EMPTY_VALID};

    /**
     *  校验value
     *
     * @return
     */
    String[] range() default {};

}
